package com.example.service.Impl;

import com.example.mapper.ScoreMapper;
import com.example.pojo.TeacherEvaluation;
import com.example.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ScoreServiceImpl implements ScoreService {
    @Autowired
    private ScoreMapper scoreMapper;


    @Override
    public void add(TeacherEvaluation teacherEvaluation) {
        scoreMapper.addTeachingEvaluation(teacherEvaluation);
    }

    @Override
    public TeacherEvaluation query(Integer stuInClassId) {
        TeacherEvaluation teacherEvaluation = scoreMapper.query(stuInClassId);
        return teacherEvaluation;
    }
}
